//index.js
//获取应用实例
var app = getApp()

Page({
  data: {
    relation: ''
  },
  onLoad(options){
    this.setData({
      relation: options.relation
    })
  },
  onShareAppMessage(){
    return {
      title: '邀请监护人',
      path: app.xhx_route.babyBeInvited+'?child='+JSON.stringify(app.currentChild)+'&relation='+this.data.relation+'&user='+JSON.stringify(app.userInfo)
    }
  }
})
